package com.caigou.enums;

import lombok.Getter;

@Getter
public enum FailResultEnum {
    PATH_ERROR(404, "请求路径错误"),

    PARAM_ERROR(400,"传入参数有误"),

    REPEAT_VOCABULARY(400,"已包含该敏感词"),

    NO_TOKEN(401,"登录信息已过期,请重新登录"),

    NO_ACCESS(403,"无权限访问"),

    PICTURE_FOLDER_ERROR(410, "图片库文件夹错误"),

    AUDIO_FOLDER_ERROR(410, "音频文件夹错误"),

    VIDEO_FOLDER_ERROR(410, "视频文件夹错误"),

    NO_SEARCH_TYPE(400,"未传入搜索类型"),

    NO_FIND_DATA(500,"未查询到订单编号"),

    NO_FIND_ARTICLE(400,"未找到该文章"),

    COMMENTS_PARAM_ERROR(400,"请输入1~300字符"),

    SMS_CODE_ERROR(500,"短信验证码错误"),

    NO_FIND_PHONE(500,"该手机号未注册,请注册后登录"),


    SERVER_ERROR(500, "服务器内部错误"),
            ;


    private final Integer code;

    private final String message;

    FailResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }



}
